import java.beans.beancontext.BeanContextChild;

abstract class Shape{
    public abstract void draw();
}

class Cycle extends Shape{
    public void draw(){
        System.out.println("○！");
    }
}

class Rect extends Shape{
    public void draw(){
        System.out.println("矩形！");
    }
}
public class test {
    public static void main(String[] args) {
        Shape[] shape = {new Cycle(),  new Rect(), new Cycle(), new Cycle()};
        for (Shape i: shape) {
            i.draw();
        }
    }

}
